﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ToolStripLabelAdapter.cs" company="">
//   
// </copyright>
// <summary>
//   The tool strip label adapter.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium.Adapters
{
    using System.Windows.Forms;

    using Libium.Views;

    /// <summary>
    /// The tool strip label adapter.
    /// </summary>
    public class ToolStripLabelAdapter : ToolStripItemAdapter<ToolStripLabel>, ITextView
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="ToolStripLabelAdapter"/> class.
        /// </summary>
        /// <param name="label">
        /// The label.
        /// </param>
        public ToolStripLabelAdapter(ToolStripLabel label)
            : base(label)
        {
        }

        #endregion

        #region Public Properties

        /// <summary>
        /// Gets or sets the text.
        /// </summary>
        public string Text
        {
            get
            {
                return Control.Text;
            }

            set
            {
                Control.Text = value;
            }
        }

        #endregion
    }
}